import time
import datetime


def log(msg, when=datetime.datetime.now()):
    print("{when}:{msg}".format(when=when, msg=msg))


if __name__ == '__main__':
    log("Hi where!")
    time.sleep(10)
    log("Hi again!")
